# -*- coding: utf-8 -*-
from fastapi import APIRouter

from .thesaurus_router import upload_json_file, get_json_data, reset_to_default

router = APIRouter(prefix='/thesaurus')

router.post("/upload", tags=["Thesaurus"], summary="上传同义词库")(upload_json_file)
router.get("/data", tags=["Thesaurus"], summary="查询同义词库")(get_json_data)
router.post("/reset", tags=["Thesaurus"], summary="恢复默认数据")(reset_to_default)
